<!DOCTYPE html>
<html>    
<head>
	<meta charset="utf-8">
	<title>角色</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="/system/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="/system/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form">
	<blockquote class="layui-elem-quote quoteBox">
		<form class="layui-form">
			<br>
			<input type="text" class="layui-input name" name="id" id="demoReload" autocomplete="off" placeholder="请输入角色名" style="width:200px;">
			<a class="layui-btn layui-btn-normal" data-type="reload" id="searchTransport" style="position: absolute;left: 240px;top: 48px;">搜索</a>
			<div class="layui-inline">
				<shiro:hasPermission name = "SysRole|toAdd">
					<a class="layui-btn layui-btn-normal addNews_btn" style="position: absolute;left:280px;top:-50px;" onclick="insert()" th:text="添加角色"></a>
				</shiro:hasPermission>
			</div>
			<div class="layui-inline">
				<shiro:hasPermission name = "SysRole|toDelete">
					<a class="layui-btn layui-btn-danger layui-btn-normal delAll_btn" style="position: absolute;left:375px;top:-50px;" id="delAll_btn" th:text="批量删除"></a>
				</shiro:hasPermission>
			</div>
		</form>
	</blockquote>
	 <table id="roleList" lay-filter="roleList"></table>   
	<!--操作-->
	<script type="text/html" id="roleListBar">
		<shiro:hasPermission name = "SysRole|toEdit">
			<a class="layui-btn layui-btn-xs" lay-event="tableUpdate"  th:text="编辑"></a>
		</shiro:hasPermission>
		<shiro:hasPermission name = "SysRole|toDelete">
			<a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="tableDelete" th:text="删除"></a>
		</shiro:hasPermission>
		<shiro:hasPermission name = "SysRole|toGrant">
			<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="grant" th:text="设置权限"></a>
		</shiro:hasPermission>
	</script>
</form>
	<script type="text/javascript" src="/system/layui/layui.js"></script>
	<script type="text/javascript" src="/sysRole/sysRole.js"></script>
  </body>
</html>